'use strict';

const Service = require('egg').Service;

class HomeswipperService extends Service {
  async swipper() {
    const swipper = [
      {
        id: 1,
        imgUrl: '//cdn.cnbj1.fds.api.mi-img.com/mi-mall/9652ea958f8c65f30343ae237b861bfe.jpg',
        href: 'https://m.mi.com/commodity/detail/2195000006'
      },
      {
        id: 2,
        imgUrl: '//cdn.cnbj1.fds.api.mi-img.com/mi-mall/b9e546a97d3a6c0e751e24a8b57a2ebf.jpg',
        href: 'https://m.mi.com/commodity/detail/2201100005'
      },
      {
        id: 3,
        imgUrl: '//cdn.cnbj1.fds.api.mi-img.com/mi-mall/40c6bcd067c6b6128a21667879415d86.jpg',
        href: 'https://s1.mi.com/m/app/hd/index.html?id=16450'
      }
    ]
    return swipper
  }
}

module.exports = HomeswipperService;
